ASP

推荐列表 站点导航

当前位置:首页 > 脚本编程 > ASP >

asp判定某个文件是否存在的函数

来源:网络  作者:网友投稿  发布时间:2021-01-17 22:35
最近在写成果的时候需要判定某个文件是否存在,存在则挪用,不存在则动态显示页面的成果,用到了下面的代码,...

返回大于0,false) XMLHTTP.send() if XMLHTTP.status=200 then 文件存在 end if ASP判定文件是否存在以及删除文件实例代码 ? 1 2 3 4 5 6 7 8 9 10 11 % ASP判定文件是否存在以及删除文件实例代码 dim htmlFilefs htmlFile=../book_show.html htmlFile=server.MapPath(htmlFile) Set fs=Server.CreateObject(Scripting.FileSystemObject) If fs.FileExists(htmlFile) Then 判定文件是否存在 fs.DeleteFile htmlFile。

,则删除文件 end if Set fs=Nothing % 。

也就是FSO, 最近在写成果的时候需要判定某个文件是否存在, ASP查抄目次是否存在的函数代码 ? 1 2 3 4 5 Function isExistFolder(Byval folderDir) on error resume next If objFso.FolderExists(server.MapPath(folderDir)) Then isExistFolder=True Else isExistFolder=False if err then err.clear:isExistFolder=False End Function ASP查抄文件是否存在的函数代码 ? 1 2 3 4 5 Function isExistFile(Byval fileDir) on error resume next If (objFso.FileExists(server.MapPath(fileDir))) Then isExistFile=True Else isExistFile=False if err then err.clear:isExistFile=False End Function asp中判定文件是否存在(不是本机上的文件) 用fso.fileexists只能查询当地文件是否存在,不然, ? 1 2 3 4 5 6 set XMLHTTP =Server.CreateObject(Microsoft.XMLHTTP) XMLHTTP.open(HEAD,true 假如文件存在。

特分享一下需要的伴侣可以参考一下,就是不存在,不存在则动态显示页面的成果,存在则挪用,用组件xmlhttp的readyState的要领可以获取长途文件是否存在,写成函数利便今后利用,暗示文件存在, 两个函数都是基于ASP中的FileSystemObject工具,用到了下面的代码,。

相关热词:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/jiaob/asp/12779.shtml

最新文章
所有我们手工回收一下就 所有我们手工回收一下就

时间:2021-01-18

 最近网站改版正好发现原 最近网站改版正好发现原

时间:2021-01-17

现在完全支持ACCESS 现在完全支持ACCESS

时间:2021-01-17

出现错误的时候 出现错误的时候

时间:2021-01-13

ASP常见错误详解及解决方 ASP常见错误详解及解决方

时间:2021-01-05

查看ASP详细错误提示信息 查看ASP详细错误提示信息

时间:2021-01-05

4款傻瓜型的ASP服务器软件 4款傻瓜型的ASP服务器软件

时间:2020-12-23

ASP 数字分页效果代码 ASP 数字分页效果代码

时间:2020-12-23

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

asp判定某个文件是否存在的函数

2021-01-17 编辑:网友投稿

返回大于0,false) XMLHTTP.send() if XMLHTTP.status=200 then 文件存在 end if ASP判定文件是否存在以及删除文件实例代码 ? 1 2 3 4 5 6 7 8 9 10 11 % ASP判定文件是否存在以及删除文件实例代码 dim htmlFilefs htmlFile=../book_show.html htmlFile=server.MapPath(htmlFile) Set fs=Server.CreateObject(Scripting.FileSystemObject) If fs.FileExists(htmlFile) Then 判定文件是否存在 fs.DeleteFile htmlFile。

,则删除文件 end if Set fs=Nothing % 。

也就是FSO, 最近在写成果的时候需要判定某个文件是否存在, ASP查抄目次是否存在的函数代码 ? 1 2 3 4 5 Function isExistFolder(Byval folderDir) on error resume next If objFso.FolderExists(server.MapPath(folderDir)) Then isExistFolder=True Else isExistFolder=False if err then err.clear:isExistFolder=False End Function ASP查抄文件是否存在的函数代码 ? 1 2 3 4 5 Function isExistFile(Byval fileDir) on error resume next If (objFso.FileExists(server.MapPath(fileDir))) Then isExistFile=True Else isExistFile=False if err then err.clear:isExistFile=False End Function asp中判定文件是否存在(不是本机上的文件) 用fso.fileexists只能查询当地文件是否存在,不然, ? 1 2 3 4 5 6 set XMLHTTP =Server.CreateObject(Microsoft.XMLHTTP) XMLHTTP.open(HEAD,true 假如文件存在。

特分享一下需要的伴侣可以参考一下,就是不存在,不存在则动态显示页面的成果,存在则挪用,用组件xmlhttp的readyState的要领可以获取长途文件是否存在,写成函数利便今后利用,暗示文件存在, 两个函数都是基于ASP中的FileSystemObject工具,用到了下面的代码,。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/jiaob/asp/12779.shtml

相关文章

风云图片

推荐阅读

返回ASP频道首页